import { ExaminesModal } from '@app-base/environments/product/widgets/commandComponents/bracket-examines-modal';
import { useState } from 'react';

const CreatedComponent = ({ onClose }) => {
  const [addDocModalOpen, setAddDocModalOpen] = useState(true);
  return (
    <ExaminesModal
      open={addDocModalOpen}
      onClose={() => {
        onClose();
        setAddDocModalOpen(false);
      }}
    />
  );
};
export const CmdBracketExamines = {
  icon: 'commands/product/bracket/bracket-check',
  id: 'CmdBracketExamines',
  label: 'command.bracket-examines',
  create: (label: string, onClose: () => void) => (
    <CreatedComponent onClose={onClose} />
  ),
};
